<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<%@ taglib uri="http://struts.apache.org/tags-nested" prefix="nested" %>

<html>
   <head>
	   <script>
		  function processDisplay(action) {
     		document.getElementById("displayblock").innerHTML = '';
     		var wordsoundkey;
		    var url = '/lwf/wordsound.do?action=display&wordSoundKey=';
		    if(action == 'starting') {
		       wordsoundkey = trimSpaces(getCheckedRadio('starting')) + '|1';
		    }
		    else if(action == 'ending') {
		       wordsoundkey = trimSpaces(getCheckedRadio('ending')) + '|2';
		    }
		    
		    url = url + wordsoundkey;
		    
		    retrieveURL(url, 'displayblock');
		    
		  }
      </script>
   </head>
   <html:form action="/wordsound" >
   
   <table border="0" align="center" width="100%" bordercolor="red">
       <tr>
           <td>
               <bean:write name="wsaform" property="wordSoundKeys" filter="false" />
           </td>
       </tr> 
       <tr>
           <td>&nbsp;</td>
       </tr> 
       <tr>
           <td><hr></td>
       </tr> 
       <tr>
           <td>
               <table border="0" width="100%">
                  <tr>
                      <td align="center">
                         <span id="displayblock"></span>
                      </td>
                  </tr>                  
               </table>
           </td>
       </tr> 
   </table>  
   </html:form>
</html>